package com.codejoys.monitor.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ConfigExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ConfigExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andModelIsNull() {
            addCriterion("model is null");
            return (Criteria) this;
        }

        public Criteria andModelIsNotNull() {
            addCriterion("model is not null");
            return (Criteria) this;
        }

        public Criteria andModelEqualTo(String value) {
            addCriterion("model =", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotEqualTo(String value) {
            addCriterion("model <>", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelGreaterThan(String value) {
            addCriterion("model >", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelGreaterThanOrEqualTo(String value) {
            addCriterion("model >=", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLessThan(String value) {
            addCriterion("model <", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLessThanOrEqualTo(String value) {
            addCriterion("model <=", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelLike(String value) {
            addCriterion("model like", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotLike(String value) {
            addCriterion("model not like", value, "model");
            return (Criteria) this;
        }

        public Criteria andModelIn(List<String> values) {
            addCriterion("model in", values, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotIn(List<String> values) {
            addCriterion("model not in", values, "model");
            return (Criteria) this;
        }

        public Criteria andModelBetween(String value1, String value2) {
            addCriterion("model between", value1, value2, "model");
            return (Criteria) this;
        }

        public Criteria andModelNotBetween(String value1, String value2) {
            addCriterion("model not between", value1, value2, "model");
            return (Criteria) this;
        }

        public Criteria andHouseIsNull() {
            addCriterion("house is null");
            return (Criteria) this;
        }

        public Criteria andHouseIsNotNull() {
            addCriterion("house is not null");
            return (Criteria) this;
        }

        public Criteria andHouseEqualTo(String value) {
            addCriterion("house =", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseNotEqualTo(String value) {
            addCriterion("house <>", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseGreaterThan(String value) {
            addCriterion("house >", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseGreaterThanOrEqualTo(String value) {
            addCriterion("house >=", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseLessThan(String value) {
            addCriterion("house <", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseLessThanOrEqualTo(String value) {
            addCriterion("house <=", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseLike(String value) {
            addCriterion("house like", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseNotLike(String value) {
            addCriterion("house not like", value, "house");
            return (Criteria) this;
        }

        public Criteria andHouseIn(List<String> values) {
            addCriterion("house in", values, "house");
            return (Criteria) this;
        }

        public Criteria andHouseNotIn(List<String> values) {
            addCriterion("house not in", values, "house");
            return (Criteria) this;
        }

        public Criteria andHouseBetween(String value1, String value2) {
            addCriterion("house between", value1, value2, "house");
            return (Criteria) this;
        }

        public Criteria andHouseNotBetween(String value1, String value2) {
            addCriterion("house not between", value1, value2, "house");
            return (Criteria) this;
        }

        public Criteria andVoltageIsNull() {
            addCriterion("voltage is null");
            return (Criteria) this;
        }

        public Criteria andVoltageIsNotNull() {
            addCriterion("voltage is not null");
            return (Criteria) this;
        }

        public Criteria andVoltageEqualTo(BigDecimal value) {
            addCriterion("voltage =", value, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageNotEqualTo(BigDecimal value) {
            addCriterion("voltage <>", value, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageGreaterThan(BigDecimal value) {
            addCriterion("voltage >", value, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage >=", value, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageLessThan(BigDecimal value) {
            addCriterion("voltage <", value, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageLessThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage <=", value, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageIn(List<BigDecimal> values) {
            addCriterion("voltage in", values, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageNotIn(List<BigDecimal> values) {
            addCriterion("voltage not in", values, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage between", value1, value2, "voltage");
            return (Criteria) this;
        }

        public Criteria andVoltageNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage not between", value1, value2, "voltage");
            return (Criteria) this;
        }

        public Criteria andCurrentIsNull() {
            addCriterion("current is null");
            return (Criteria) this;
        }

        public Criteria andCurrentIsNotNull() {
            addCriterion("current is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentEqualTo(BigDecimal value) {
            addCriterion("current =", value, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentNotEqualTo(BigDecimal value) {
            addCriterion("current <>", value, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentGreaterThan(BigDecimal value) {
            addCriterion("current >", value, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current >=", value, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentLessThan(BigDecimal value) {
            addCriterion("current <", value, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current <=", value, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentIn(List<BigDecimal> values) {
            addCriterion("current in", values, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentNotIn(List<BigDecimal> values) {
            addCriterion("current not in", values, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current between", value1, value2, "current");
            return (Criteria) this;
        }

        public Criteria andCurrentNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current not between", value1, value2, "current");
            return (Criteria) this;
        }

        public Criteria andPowerUpperIsNull() {
            addCriterion("power_upper is null");
            return (Criteria) this;
        }

        public Criteria andPowerUpperIsNotNull() {
            addCriterion("power_upper is not null");
            return (Criteria) this;
        }

        public Criteria andPowerUpperEqualTo(BigDecimal value) {
            addCriterion("power_upper =", value, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperNotEqualTo(BigDecimal value) {
            addCriterion("power_upper <>", value, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperGreaterThan(BigDecimal value) {
            addCriterion("power_upper >", value, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("power_upper >=", value, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperLessThan(BigDecimal value) {
            addCriterion("power_upper <", value, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperLessThanOrEqualTo(BigDecimal value) {
            addCriterion("power_upper <=", value, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperIn(List<BigDecimal> values) {
            addCriterion("power_upper in", values, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperNotIn(List<BigDecimal> values) {
            addCriterion("power_upper not in", values, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("power_upper between", value1, value2, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerUpperNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("power_upper not between", value1, value2, "powerUpper");
            return (Criteria) this;
        }

        public Criteria andPowerLowerIsNull() {
            addCriterion("power_lower is null");
            return (Criteria) this;
        }

        public Criteria andPowerLowerIsNotNull() {
            addCriterion("power_lower is not null");
            return (Criteria) this;
        }

        public Criteria andPowerLowerEqualTo(BigDecimal value) {
            addCriterion("power_lower =", value, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerNotEqualTo(BigDecimal value) {
            addCriterion("power_lower <>", value, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerGreaterThan(BigDecimal value) {
            addCriterion("power_lower >", value, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("power_lower >=", value, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerLessThan(BigDecimal value) {
            addCriterion("power_lower <", value, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("power_lower <=", value, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerIn(List<BigDecimal> values) {
            addCriterion("power_lower in", values, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerNotIn(List<BigDecimal> values) {
            addCriterion("power_lower not in", values, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("power_lower between", value1, value2, "powerLower");
            return (Criteria) this;
        }

        public Criteria andPowerLowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("power_lower not between", value1, value2, "powerLower");
            return (Criteria) this;
        }

        public Criteria andAgingUpperIsNull() {
            addCriterion("aging_upper is null");
            return (Criteria) this;
        }

        public Criteria andAgingUpperIsNotNull() {
            addCriterion("aging_upper is not null");
            return (Criteria) this;
        }

        public Criteria andAgingUpperEqualTo(Integer value) {
            addCriterion("aging_upper =", value, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperNotEqualTo(Integer value) {
            addCriterion("aging_upper <>", value, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperGreaterThan(Integer value) {
            addCriterion("aging_upper >", value, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperGreaterThanOrEqualTo(Integer value) {
            addCriterion("aging_upper >=", value, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperLessThan(Integer value) {
            addCriterion("aging_upper <", value, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperLessThanOrEqualTo(Integer value) {
            addCriterion("aging_upper <=", value, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperIn(List<Integer> values) {
            addCriterion("aging_upper in", values, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperNotIn(List<Integer> values) {
            addCriterion("aging_upper not in", values, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperBetween(Integer value1, Integer value2) {
            addCriterion("aging_upper between", value1, value2, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingUpperNotBetween(Integer value1, Integer value2) {
            addCriterion("aging_upper not between", value1, value2, "agingUpper");
            return (Criteria) this;
        }

        public Criteria andAgingLowerIsNull() {
            addCriterion("aging_lower is null");
            return (Criteria) this;
        }

        public Criteria andAgingLowerIsNotNull() {
            addCriterion("aging_lower is not null");
            return (Criteria) this;
        }

        public Criteria andAgingLowerEqualTo(Integer value) {
            addCriterion("aging_lower =", value, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerNotEqualTo(Integer value) {
            addCriterion("aging_lower <>", value, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerGreaterThan(Integer value) {
            addCriterion("aging_lower >", value, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerGreaterThanOrEqualTo(Integer value) {
            addCriterion("aging_lower >=", value, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerLessThan(Integer value) {
            addCriterion("aging_lower <", value, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerLessThanOrEqualTo(Integer value) {
            addCriterion("aging_lower <=", value, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerIn(List<Integer> values) {
            addCriterion("aging_lower in", values, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerNotIn(List<Integer> values) {
            addCriterion("aging_lower not in", values, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerBetween(Integer value1, Integer value2) {
            addCriterion("aging_lower between", value1, value2, "agingLower");
            return (Criteria) this;
        }

        public Criteria andAgingLowerNotBetween(Integer value1, Integer value2) {
            addCriterion("aging_lower not between", value1, value2, "agingLower");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperIsNull() {
            addCriterion("voltage_upper is null");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperIsNotNull() {
            addCriterion("voltage_upper is not null");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperEqualTo(BigDecimal value) {
            addCriterion("voltage_upper =", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperNotEqualTo(BigDecimal value) {
            addCriterion("voltage_upper <>", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperGreaterThan(BigDecimal value) {
            addCriterion("voltage_upper >", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_upper >=", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperLessThan(BigDecimal value) {
            addCriterion("voltage_upper <", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperLessThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_upper <=", value, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperIn(List<BigDecimal> values) {
            addCriterion("voltage_upper in", values, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperNotIn(List<BigDecimal> values) {
            addCriterion("voltage_upper not in", values, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_upper between", value1, value2, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageUpperNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_upper not between", value1, value2, "voltageUpper");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerIsNull() {
            addCriterion("voltage_lower is null");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerIsNotNull() {
            addCriterion("voltage_lower is not null");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerEqualTo(BigDecimal value) {
            addCriterion("voltage_lower =", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerNotEqualTo(BigDecimal value) {
            addCriterion("voltage_lower <>", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerGreaterThan(BigDecimal value) {
            addCriterion("voltage_lower >", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_lower >=", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerLessThan(BigDecimal value) {
            addCriterion("voltage_lower <", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("voltage_lower <=", value, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerIn(List<BigDecimal> values) {
            addCriterion("voltage_lower in", values, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerNotIn(List<BigDecimal> values) {
            addCriterion("voltage_lower not in", values, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_lower between", value1, value2, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andVoltageLowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("voltage_lower not between", value1, value2, "voltageLower");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperIsNull() {
            addCriterion("current_upper is null");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperIsNotNull() {
            addCriterion("current_upper is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperEqualTo(BigDecimal value) {
            addCriterion("current_upper =", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperNotEqualTo(BigDecimal value) {
            addCriterion("current_upper <>", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperGreaterThan(BigDecimal value) {
            addCriterion("current_upper >", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_upper >=", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperLessThan(BigDecimal value) {
            addCriterion("current_upper <", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_upper <=", value, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperIn(List<BigDecimal> values) {
            addCriterion("current_upper in", values, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperNotIn(List<BigDecimal> values) {
            addCriterion("current_upper not in", values, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_upper between", value1, value2, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentUpperNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_upper not between", value1, value2, "currentUpper");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerIsNull() {
            addCriterion("current_lower is null");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerIsNotNull() {
            addCriterion("current_lower is not null");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerEqualTo(BigDecimal value) {
            addCriterion("current_lower =", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerNotEqualTo(BigDecimal value) {
            addCriterion("current_lower <>", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerGreaterThan(BigDecimal value) {
            addCriterion("current_lower >", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("current_lower >=", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerLessThan(BigDecimal value) {
            addCriterion("current_lower <", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerLessThanOrEqualTo(BigDecimal value) {
            addCriterion("current_lower <=", value, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerIn(List<BigDecimal> values) {
            addCriterion("current_lower in", values, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerNotIn(List<BigDecimal> values) {
            addCriterion("current_lower not in", values, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_lower between", value1, value2, "currentLower");
            return (Criteria) this;
        }

        public Criteria andCurrentLowerNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("current_lower not between", value1, value2, "currentLower");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdIsNull() {
            addCriterion("auto_turnoff_threshold is null");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdIsNotNull() {
            addCriterion("auto_turnoff_threshold is not null");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdEqualTo(Byte value) {
            addCriterion("auto_turnoff_threshold =", value, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdNotEqualTo(Byte value) {
            addCriterion("auto_turnoff_threshold <>", value, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdGreaterThan(Byte value) {
            addCriterion("auto_turnoff_threshold >", value, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdGreaterThanOrEqualTo(Byte value) {
            addCriterion("auto_turnoff_threshold >=", value, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdLessThan(Byte value) {
            addCriterion("auto_turnoff_threshold <", value, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdLessThanOrEqualTo(Byte value) {
            addCriterion("auto_turnoff_threshold <=", value, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdIn(List<Byte> values) {
            addCriterion("auto_turnoff_threshold in", values, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdNotIn(List<Byte> values) {
            addCriterion("auto_turnoff_threshold not in", values, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdBetween(Byte value1, Byte value2) {
            addCriterion("auto_turnoff_threshold between", value1, value2, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffThresholdNotBetween(Byte value1, Byte value2) {
            addCriterion("auto_turnoff_threshold not between", value1, value2, "autoTurnoffThreshold");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledIsNull() {
            addCriterion("auto_turnoff_enabled is null");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledIsNotNull() {
            addCriterion("auto_turnoff_enabled is not null");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledEqualTo(Byte value) {
            addCriterion("auto_turnoff_enabled =", value, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledNotEqualTo(Byte value) {
            addCriterion("auto_turnoff_enabled <>", value, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledGreaterThan(Byte value) {
            addCriterion("auto_turnoff_enabled >", value, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledGreaterThanOrEqualTo(Byte value) {
            addCriterion("auto_turnoff_enabled >=", value, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledLessThan(Byte value) {
            addCriterion("auto_turnoff_enabled <", value, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledLessThanOrEqualTo(Byte value) {
            addCriterion("auto_turnoff_enabled <=", value, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledIn(List<Byte> values) {
            addCriterion("auto_turnoff_enabled in", values, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledNotIn(List<Byte> values) {
            addCriterion("auto_turnoff_enabled not in", values, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledBetween(Byte value1, Byte value2) {
            addCriterion("auto_turnoff_enabled between", value1, value2, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andAutoTurnoffEnabledNotBetween(Byte value1, Byte value2) {
            addCriterion("auto_turnoff_enabled not between", value1, value2, "autoTurnoffEnabled");
            return (Criteria) this;
        }

        public Criteria andDurationIsNull() {
            addCriterion("duration is null");
            return (Criteria) this;
        }

        public Criteria andDurationIsNotNull() {
            addCriterion("duration is not null");
            return (Criteria) this;
        }

        public Criteria andDurationEqualTo(Integer value) {
            addCriterion("duration =", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotEqualTo(Integer value) {
            addCriterion("duration <>", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationGreaterThan(Integer value) {
            addCriterion("duration >", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationGreaterThanOrEqualTo(Integer value) {
            addCriterion("duration >=", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationLessThan(Integer value) {
            addCriterion("duration <", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationLessThanOrEqualTo(Integer value) {
            addCriterion("duration <=", value, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationIn(List<Integer> values) {
            addCriterion("duration in", values, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotIn(List<Integer> values) {
            addCriterion("duration not in", values, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationBetween(Integer value1, Integer value2) {
            addCriterion("duration between", value1, value2, "duration");
            return (Criteria) this;
        }

        public Criteria andDurationNotBetween(Integer value1, Integer value2) {
            addCriterion("duration not between", value1, value2, "duration");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNull() {
            addCriterion("created is null");
            return (Criteria) this;
        }

        public Criteria andCreatedIsNotNull() {
            addCriterion("created is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedEqualTo(Date value) {
            addCriterion("created =", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotEqualTo(Date value) {
            addCriterion("created <>", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThan(Date value) {
            addCriterion("created >", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedGreaterThanOrEqualTo(Date value) {
            addCriterion("created >=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThan(Date value) {
            addCriterion("created <", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedLessThanOrEqualTo(Date value) {
            addCriterion("created <=", value, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedIn(List<Date> values) {
            addCriterion("created in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotIn(List<Date> values) {
            addCriterion("created not in", values, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedBetween(Date value1, Date value2) {
            addCriterion("created between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedNotBetween(Date value1, Date value2) {
            addCriterion("created not between", value1, value2, "created");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNull() {
            addCriterion("created_by is null");
            return (Criteria) this;
        }

        public Criteria andCreatedByIsNotNull() {
            addCriterion("created_by is not null");
            return (Criteria) this;
        }

        public Criteria andCreatedByEqualTo(Integer value) {
            addCriterion("created_by =", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotEqualTo(Integer value) {
            addCriterion("created_by <>", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThan(Integer value) {
            addCriterion("created_by >", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByGreaterThanOrEqualTo(Integer value) {
            addCriterion("created_by >=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThan(Integer value) {
            addCriterion("created_by <", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByLessThanOrEqualTo(Integer value) {
            addCriterion("created_by <=", value, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByIn(List<Integer> values) {
            addCriterion("created_by in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotIn(List<Integer> values) {
            addCriterion("created_by not in", values, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByBetween(Integer value1, Integer value2) {
            addCriterion("created_by between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andCreatedByNotBetween(Integer value1, Integer value2) {
            addCriterion("created_by not between", value1, value2, "createdBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNull() {
            addCriterion("updated is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedIsNotNull() {
            addCriterion("updated is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedEqualTo(Date value) {
            addCriterion("updated =", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotEqualTo(Date value) {
            addCriterion("updated <>", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThan(Date value) {
            addCriterion("updated >", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedGreaterThanOrEqualTo(Date value) {
            addCriterion("updated >=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThan(Date value) {
            addCriterion("updated <", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedLessThanOrEqualTo(Date value) {
            addCriterion("updated <=", value, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedIn(List<Date> values) {
            addCriterion("updated in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotIn(List<Date> values) {
            addCriterion("updated not in", values, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedBetween(Date value1, Date value2) {
            addCriterion("updated between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedNotBetween(Date value1, Date value2) {
            addCriterion("updated not between", value1, value2, "updated");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIsNull() {
            addCriterion("updated_by is null");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIsNotNull() {
            addCriterion("updated_by is not null");
            return (Criteria) this;
        }

        public Criteria andUpdatedByEqualTo(Integer value) {
            addCriterion("updated_by =", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotEqualTo(Integer value) {
            addCriterion("updated_by <>", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByGreaterThan(Integer value) {
            addCriterion("updated_by >", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByGreaterThanOrEqualTo(Integer value) {
            addCriterion("updated_by >=", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLessThan(Integer value) {
            addCriterion("updated_by <", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByLessThanOrEqualTo(Integer value) {
            addCriterion("updated_by <=", value, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByIn(List<Integer> values) {
            addCriterion("updated_by in", values, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotIn(List<Integer> values) {
            addCriterion("updated_by not in", values, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByBetween(Integer value1, Integer value2) {
            addCriterion("updated_by between", value1, value2, "updatedBy");
            return (Criteria) this;
        }

        public Criteria andUpdatedByNotBetween(Integer value1, Integer value2) {
            addCriterion("updated_by not between", value1, value2, "updatedBy");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}